package com.example.demo.model;

import com.alibaba.fastjson.JSONObject;

public class JSONResult extends JSONObject {


    public JSONResult() {

    }

    public void putJSONData(int code, String msg, Object data) {

        this.put("code", code);
        this.put("msg", msg);
        this.put("data", data);
    }

    public void putJSONData(int code, String msg, String path, Object data) {
        this.put("code", code);
        this.put("msg", msg);
        this.put("path", path);
        this.put("data", data);
    }

    public JSONObject getResultJson() {
        return this;
    }
}
